<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ include file="/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <%@ include file="/common/meta.jsp" %>
        <title><decorator:title/> | <fmt:message key="webapp.name"/></title>

		<c:choose>
			<c:when test="${empty param.csstheme}">
				<c:set scope="request" var="cssTheme">${appConfig["csstheme"]}</c:set>
			</c:when>
			
			<c:otherwise>
				<c:set scope="request" var="cssTheme">${param.csstheme}</c:set>
			</c:otherwise>
		</c:choose>

        <link rel="stylesheet" type="text/css" media="all" href="<c:url value='/styles/${cssTheme}/theme.css'/>" />
        <link rel="stylesheet" type="text/css" media="print" href="<c:url value='/styles/${cssTheme}/print.css'/>" />

        <script type="text/javascript" src="<c:url value='/scripts/prototype.js'/>"></script>
        
        <decorator:head/>
    </head>
<body<decorator:getProperty property="body.id" writeEntireProperty="true"/><decorator:getProperty property="body.class" writeEntireProperty="true"/>>

    <div id="page">
        <div id="header" class="clearfix">
            <jsp:include page="/common/header.jsp"/>
        </div>
        <div id="content" class="clearfix" >
            <div id="main">
                <h1><decorator:getProperty property="meta.heading"/></h1>
                <decorator:body/>
            </div>


            <div id="nav">

            </div><!-- end nav -->
        </div>

        <div id="footer" class="clearfix">
            <jsp:include page="/common/footer.jsp"/>
        </div>
    </div>
</body>
</html>
